# @Version : 1.0
# @Author  : wxz
# @File    : chat_message_model.py
# @Time    : 2025/6/20 20:39
# @Describe: 描述...

from sqlalchemy import Column, String, Integer, DateTime
from sqlmodel import Field

from database.mysql.base_sql_model import BaseSQLModel


class ChatMessageModel(BaseSQLModel, table=True):

    __tablename__ = 'chat_message'

    user_id: str = Field(description="用户ID", max_length=64)

    user_chat_id: str = Field(description="用户的会话聊天ID", max_length=64)

    message: str = Field(description="会话聊天内容JSON", max_length=255)

    serial_number: int = Field(description="会话序号")





